package com.gopay.common.rcs.manager.antiphish.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.gopay.common.domain.rcs.RcsAntiPhishViolateLog;
import com.gopay.common.rcs.dao.antiphish.RcsAntiPhishingViolateLogDAO;
import com.gopay.common.rcs.manager.antiphish.RcsAntiPhishingViolateLogManager;

/**
 * 触犯防钓鱼规则日志manager层
 * 
 * @RcsAntiPhishingViolateLogManager.java
 * @author liujy
 * @2013-7-23 下午6:35:00 www.gopay.com.cn Inc.All rights reserved.
 */
@Repository("rcsAntiPhishingViolateLogManager")
public class RcsAntiPhishingViolateLogManagerImpl implements RcsAntiPhishingViolateLogManager {

    @Resource(name = "rcsAntiPhishingViolateLogDAO")
    RcsAntiPhishingViolateLogDAO rcsAntiPhishingViolateLogDAO;

    @Override
    public void save(RcsAntiPhishViolateLog log) {
        rcsAntiPhishingViolateLogDAO.save(log);
    }

    public RcsAntiPhishingViolateLogDAO getRcsAntiPhishingViolateLogDAO() {
        return rcsAntiPhishingViolateLogDAO;
    }

    public void setRcsAntiPhishingViolateLogDAO(RcsAntiPhishingViolateLogDAO rcsAntiPhishingViolateLogDAO) {
        this.rcsAntiPhishingViolateLogDAO = rcsAntiPhishingViolateLogDAO;
    }

    @Override
    public List<RcsAntiPhishViolateLog> findAntiPhishLog(Map<String, Object> parameterMap, int pageIndex, int pageSize) {
        return rcsAntiPhishingViolateLogDAO.findAntiPhishLog(parameterMap, pageIndex, pageSize);
    }

    @Override
    public RcsAntiPhishViolateLog getByTransDtlSq(int transDtlSq) {
        return rcsAntiPhishingViolateLogDAO.getByTransDtlSq(transDtlSq);
    }

    @Override
    public int getCount(Map<String, Object> parameterMap) {
        return rcsAntiPhishingViolateLogDAO.getCount(parameterMap);
    }

    @Override
    public void update(RcsAntiPhishViolateLog log) {
        rcsAntiPhishingViolateLogDAO.update(log);
    }

}
